import {searchStoreAllList,addStoreItem,updateStoreItem,deleteStoreItem} from './commonFunction.js'


// 获取需求  信息的接口
export  async function  searchRequireDescriptionList(){
    let result = await searchStoreAllList('requireDescription')
    if(result &&  result.length > 0 ){
        result.reverse()
    }
    return result
}



// 新增需求 信息的接口
export async function addRequireDescription(param) {
    return await addStoreItem('requireDescription',param)
}



// 修改需求 信息的接口
export async function updateRequireDescriptionItem(param) {
    return await updateStoreItem('requireDescription',param)
}


// 删除需求信息
export async function deleteRequireDescriptionItem(id) {
    return await deleteStoreItem('requireDescription',id)
}


